import { request } from "../../utils/request.js"


// 获取购物车集合
export const getShoppingCartList = (params) => {
	return request({
		url: '/shopping/cart/list',
		method: 'GET',
		params
	})
}

// 用户登录
export const userLogin = (params) => {
	return request({
		url: '/user/login',
		method: 'POST',
		params
	})
}


// 更新购物车某种商品数量
export const updateProductNum = (params) =>
	request({
		url: `/shopping/cart/number/update`,
		method: 'PUT',
		params
	})

